﻿using System.ComponentModel.DataAnnotations;

namespace Mall.Web.ViewModel.Query
{
    public  class QueryPagedBaseVM
    {
        public  int Skip { get; set; } = 0;

        [Range(-1, 100, ErrorMessage = "Count不能超过100")] //防止恶意大量数据查询
        public  int Count { get; set; } = 10;
    }
    //public abstract class QueryPagedVM : QueryPagedBaseVM
    //{
    //    public bool? Asc { get; set; } = true;

    //    public string OrderBy { get; set; }
    //}


}
